MedicalViewerCell
Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Generic MedicalViewerCellCollection Class
See Also  Members   Example 
Leadtools.MedicalViewer Namespace : Generic MedicalViewerCellCollection Class




Represents a generic collection of MedicalViewerCell objects.

Syntax

Visual Basic (Declaration) 
Public Class MedicalViewerCellCollection(Of MedicalViewerCell) 
   Inherits RasterCollection(Of MedicalViewerCell)
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCellCollection(Of MedicalViewerCell)
C# 
public class MedicalViewerCellCollection<MedicalViewerCell> : RasterCollection<MedicalViewerCell> 
Managed Extensions for C++ 
public __gc class MedicalViewerCellCollection<MedicalViewerCell> : public RasterCollection<MedicalViewerCell> 
C++/CLI 
generic<typename MedicalViewerCell>
public ref class MedicalViewerCellCollection : public RasterCollection<MedicalViewerCell> 

Type Parameters

MedicalViewerCell

Example

Freezes the selected cells.

Visual BasicCopy Code
<Test> _
Public Sub MedicalViewerCellCollectionExample()
   Dim index As Integer
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   medicalViewer.Cells.SelectAll(False)
   For index = 0 To medicalViewer.Cells.Count - 1
      If (index Mod 2) = 0 Then
         medicalViewer.Cells(index).Selected = True
      End If
   Next index
   medicalViewer.Cells.FreezeSelected(True)
   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerCellCollectionExample() 

   int index; 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   medicalViewer.Cells.SelectAll(false); 
   for (index = 0; index < medicalViewer.Cells.Count; index++) 
      if ((index % 2) == 0) 
         medicalViewer.Cells[index].Selected = true; 
   medicalViewer.Cells.FreezeSelected(true); 
   myForm.ShowDialog(); 
}

Remarks

  • The Generic MedicalViewerCellCollection class provides a generic collection class that implements the .NET Generic IList, Generic ICollection and Generic IEnumerable interfaces.

Inheritance Hierarchy

System.Object
   Leadtools.RasterCollection<MedicalViewerCell>
      Leadtools.MedicalViewer.MedicalViewerCellCollection

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.MedicalViewer requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features